<?php

	require("Manager.php");
	
	class editEmployeeController{
	
		private $manager;
		
		function __construct()
		{
			$this->manager = new Manager;
		}
		
		function sendEditEmployeeRequest($empno)
		{
			$result = $this->manager->showInfo($empno);
			return $result;
			
		}
		
		function sendSaveChangesRequest($empno,$tin,$firstName,$middleName,$lastName,$contactNo,$birthday,$age,$branch,$branchAdd,$pos,)
		{
			$regemp = new RegularEmployee;
			$regemp -> editPlanholder($empno,$tin,$firstName,$middleName,$lastName,$contactNo,$birthday,$age,$branch,$branchAdd,$pos,);
		}
	}

	
$edit = new editEmployeeController;
$employeeNumber = $_REQUEST['employeeNumber'];
$tin = $_REQUEST['TIN'];
$firstName = $_REQUEST['firstName'];
$middleName = $_REQUEST['middleName'];
$lastName = $_REQUEST['lastName'];
$contactNo = $_REQUEST['contactNo'];
$birthday = $_REQUEST['birthday'];
$age = $_REQUEST['age'];
$branch = $_REQUEST['branch'];
$branchAdd = $_REQUEST['branchAdd'];
$pos = $_REQUEST['pos'];

$edit->sendSaveChangesRequest($empno,$tin,$firstName,$middleName,$lastName,$contactNo,$birthday,$age,$branch,$branchAdd,$pos,);

?>
